import os
import pickle 
import threading,time
from cdb_client import cdb_client

def test_put_func(obj):
	cli = cdb_client()
	cli.add_server(('127.0.0.1',1010))
	cli.put('test','hello')
	#val = cli.get('test')


def main():
	start_time = time.time()
	cli = cdb_client()
	cli.add_server(('127.0.0.1',1010))
	cli.put('test','11')
	for index in xrange(5000):
		cli.get('test')
	print time.time() - start_time

if __name__=='__main__':
	main()
